<?php
	class OrderShowModel extends ViewModel{
		protected $tableName = 'order';

		protected $viewFields = array(
			'order'=>array(
				'id','number','total','status','remark','time','paytype','transporttype',
				'_type'=>'LEFT'
				),
			'order_list'=>array(
				'quantity','subtotal','mark',
				'_on' => 'order.id = order_list.oid'
				)
			);
	}
?>